package com.dao;

import com.domian.Account;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface Accountdao {
    @Select("select * from account")
    List<Account>findall();
    @Insert("Insert into account(name,money) values(#{name}," +
            "#{money})")
    void save(Account account);
}
